<template>
  <div class="wall-message">
    <p class="title">{{ wallType[id].name }}</p>
    <p class="slogan">{{ wallType[id].slongan }}</p>
    <div class="laber">
      <p
        class="laber-list"
        v-for="(item, index) in laber[id]"
        :key="index"
        :class="{ lbselected: index == isActive }"
        @click="btnClick(index)"
      >
        {{ item }}
      </p>
    </div>
  </div>
</template>

<script>
import { wallType, laber } from "@/utils/data";
export default {
  data() {
    return {
      wallType,
      laber,
      id: 0,
      isActive: 0,
    };
  },
  methods: {
    btnClick(index) {
      this.isActive = index;
    },
  },
};
</script>

<style lang="scss" scoped>
.wall-message {
  padding-top: 52px;
  min-height: 700px;
  .title {
    padding: 48px 0 8px 0;
    font-size: 56px;
    color: #202020;
    text-align: center;
    font-weight: 600;
  }
  .slogan {
    color: #5b5b5b;
    text-align: center;
  }
  .laber {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    .laber-list {
      padding: 0 14px;
      line-height: 28px;
      margin: 4px;
      color: #5b5b5b;
    }
    .lbselected {
      color: #202020;
      font-weight: 900;
      border: 1px solid #202020;
      border-radius: 14px;
    }
  }
}
</style>